package com.threeti.mecool.core.application.report;

import java.io.Serializable;

import com.threeti.mecool.core.util.BigDecimalUtil;

/**
 * (督导)任务执行明细，如巡店执行跟踪
 * 
 * @author Jay Meng
 */
public class SupervisorTaskPerformanceRate implements Serializable {
  private String executorEmpId;
  private String executorName;
  private String executorTitle;
  private String adminDivAreaName;
  private String adminDivAreaCode;
  private int plannedQuantityOfTask;
  private int actualQuantityOfTask;
  
  private String executeAddress;
  
  private String executeCityName;
  private String executeJobName;
  private String executeProjectName;
  	
  
  public void setExecuteCityName(String executeCityName) {
	this.executeCityName = executeCityName;
  }
  
  public void setExecuteJobName(String executeJobName) {
	this.executeJobName = executeJobName;
  }
  
  public void setExecuteProjectName(String executeProjectName) {
	this.executeProjectName = executeProjectName;
  }
  
  public String getExecuteCityName() {
	return executeCityName;
  }
  
  public String getExecuteJobName() {
	return executeJobName;
  }
  
  public String getExecuteProjectName() {
	return executeProjectName;
  }
  
  public void setExecuteAddress(String executeAddress) {
	this.executeAddress = executeAddress;
  }
  
  public String getExecuteAddress() {
	return executeAddress;
  }
  
  
  
  public SupervisorTaskPerformanceRate(String adminDivAreaCode, int plannedQuantityOfTask, int actualQuantityOfTask) {
    super();
    this.adminDivAreaCode = adminDivAreaCode;
    this.plannedQuantityOfTask = plannedQuantityOfTask;
    this.actualQuantityOfTask = actualQuantityOfTask;
  }

  public SupervisorTaskPerformanceRate(String adminDivAreaName, String adminDivAreaCode, int plannedQuantityOfTask,
      int actualQuantityOfTask) {
    this(adminDivAreaCode, plannedQuantityOfTask, actualQuantityOfTask);
    this.adminDivAreaName = adminDivAreaName;
  }
  
  public SupervisorTaskPerformanceRate(String executorEmpId, String executorName, String executorTitle, String adminDivAreaName,
      String adminDivAreaCode, int plannedQuantityOfTask, int actualQuantityOfTask) {
    super();
    this.executorEmpId = executorEmpId;
    this.executorName = executorName;
    this.executorTitle = executorTitle;
    this.adminDivAreaName = adminDivAreaName;
    this.adminDivAreaCode = adminDivAreaCode;
    this.plannedQuantityOfTask = plannedQuantityOfTask;
    this.actualQuantityOfTask = actualQuantityOfTask;
  }

  public String getExecutorName() {
    return executorName;
  }

  public String getExecutorTitle() {
    return executorTitle;
  }

  public String getAdminDivAreaName() {
    return adminDivAreaName;
  }

  public String getAdminDivAreaCode() {
    return adminDivAreaCode;
  }

  public int getPlannedQuantityOfTask() {
    return plannedQuantityOfTask;
  }

  public int getActualQuantityOfTask() {
    return actualQuantityOfTask;
  }

  public String getPercentValueFormatted() {
    return BigDecimalUtil.percentFormattedValueOf(actualQuantityOfTask, plannedQuantityOfTask);
  }

  public int getPercentIntValue() {
    return BigDecimalUtil.percentIntValueOf(actualQuantityOfTask, plannedQuantityOfTask);
  }
  
  public SupervisorTaskPerformanceRate() {
    super();
  }

  public String getExecutorEmpId() {
    return executorEmpId;
  }

  public void setExecutorEmpId(String executorEmpId) {
    this.executorEmpId = executorEmpId;
  }

  public void setExecutorName(String executorName) {
    this.executorName = executorName;
  }

  public void setExecutorTitle(String executorTitle) {
    this.executorTitle = executorTitle;
  }

  public void setAdminDivAreaName(String adminDivAreaName) {
    this.adminDivAreaName = adminDivAreaName;
  }

  public void setAdminDivAreaCode(String adminDivAreaCode) {
    this.adminDivAreaCode = adminDivAreaCode;
  }

  public void setPlannedQuantityOfTask(int plannedQuantityOfTask) {
    this.plannedQuantityOfTask = plannedQuantityOfTask;
  }

  public void setActualQuantityOfTask(int actualQuantityOfTask) {
    this.actualQuantityOfTask = actualQuantityOfTask;
  }

  @Override
  public String toString() {
    return "SupervisorTaskPerformanceRate [executorEmpId=" + executorEmpId + ", executorName=" + executorName
        + ", executorTitle=" + executorTitle + ", adminDivAreaName=" + adminDivAreaName + ", adminDivAreaCode="
        + adminDivAreaCode + ", plannedQuantityOfTask=" + plannedQuantityOfTask + ", actualQuantityOfTask="
        + actualQuantityOfTask + "]";
  }
  
}
